<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>弹框</title>
    <style>
        .dialogBox{
            width: 400px;
            height: 50px;
            border: 1px solid #ccc;
            position: fixed;
            left: 50%;
            transform: translate(-50%);
            top: 100px;
        }
    </style>
</head>
<body>
    <button text="我是成功的提示">成功</button>
    <button text="我是警告的提示">警告</button>
    <button text="我是信息的提示">信息</button>
    <button text="我是报错的提示">错误</button>
    <script src="./index.js"></script>
</body>
</html>